//
//  UIScrollView+YCTools.m
//  Pods
//
//  Created by Apple on 2022/11/3.
//

#import "UIScrollView+YCTools.h"

@implementation UIScrollView (YCTools)

+ (UIScrollView *)scrollViewWithFrame:(CGRect)frame
                              bgColor:(UIColor *)bgColor {
    UIScrollView *scroll = [[UIScrollView alloc] initWithFrame:frame];
    scroll.backgroundColor = bgColor;
    return scroll;
}

+ (UIScrollView *)scrollViewWithFrame:(CGRect)frame
                              bgColor:(UIColor *)bgColor
                             delegate:(id)delegate {
    UIScrollView *scroll = [[UIScrollView alloc] initWithFrame:frame];
    scroll.backgroundColor = bgColor;
    scroll.delegate = delegate;
    return scroll;
}

@end
